import useAxiosApi from '@/utils/useAxiosApi';

export function login(data: any) {
  return useAxiosApi(`user/chatlogin`, {
    method: 'POST',
    data: data
  });
}


export function dingTalklogin(data: any) {
  return useAxiosApi(`user/ddlogin`, {
    method: 'GET',
    params: data
  });
}


export function getUser() {
  return useAxiosApi(`user/get`, {
    method: 'GET',
  });
}


export function uploadOss(data) {
  return useAxiosApi(`file/upload`, {
    method: 'POST',
    data: data
  });
}